//
//  LFFamousCollectionViewCell.m
//  LocalLife
//
//  Created by 李立达 on 15/11/25.
//  Copyright © 2015年 heima11. All rights reserved.
//

#import "LFFamousCollectionViewCell.h"

@interface LFFamousCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *cellImageview;
@property (weak, nonatomic) IBOutlet UIImageView *star;
@property (weak, nonatomic) IBOutlet UILabel *introLable;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;


@end

@implementation LFFamousCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)setModel:(LFFamous *)model
{
    model=model;
    NSString *starstr=[NSString stringWithFormat:@"star_%@",model.score];
    _star.image=[UIImage imageNamed:starstr];
    [_cellImageview sd_setImageWithURL:[NSURL URLWithString:model.cover]];
    
    self.nameLabel.text=model.name;
    self.introLable.text=model.intro;
}
@end
